import request from '@/utils/request'

// 查询喊话器设备信息列表
export function listHailer(query) {
    return request({
        url: '/equipment/hailer/list',
        method: 'get',
        params: query
    })
}

// 查询喊话器设备信息详细
export function getHailer(id) {
    return request({
        url: '/equipment/hailer/' + id,
        method: 'get'
    })
}

// 新增喊话器设备信息
export function addHailer(data) {
    return request({
        url: '/equipment/hailer',
        method: 'post',
        data: data
    })
}

// 修改喊话器设备信息
export function updateHailer(data) {
    return request({
        url: '/equipment/hailer',
        method: 'put',
        data: data
    })
}

// 删除喊话器设备信息
export function delHailer(id) {
    return request({
        url: '/equipment/hailer/' + id,
        method: 'delete'
    })
}

//喊话信息表
export function listHailerAnnouncemente() {
    return request({
        url: '/equipment/hailer/announcemente/list',
        method: 'get',
    })
}

// 查询无人机信息列表
export function listDrone(query) {
    return request({
        url: '/equipment/drone_info/list',
        method: 'get',
        params: query
    })
}